/*
 * table_FileIndex.h
 *
 *  Created on: 2012/03/27
 *      Author: guanxiaoying
 */

#ifndef TABLE_FILEINDEX_H_
#define TABLE_FILEINDEX_H_

typedef struct {
	BOOL (*clear)( VOID );
	BOOL (*reset)( VOID );
	BOOL (*copy)( AST, AST, AST );
	AST  (*getMax)( VOID );
	AST (*addFile)( PSZ );
	/*debug,12/10/16,S*/
	AST (*addFile_load)(PSZ,S4,U4,BOOL,BOOL,AST);
	/*debug,12/10/16,E*/
	U4  (*getFile)( AST index, PSZ buffer, U4 buflen );
	S4  (*getModifyTime)( AST );
	U4  (*getSize)( AST );
	BOOL  (*isFolder)( AST );
	BOOL  (*isExisted)( AST );
	PSZ   (*getLastSegmentName)( AST, U4 );
	ACCESS_IDX_FIELD transUnit;
}FILEINDEXACCESS;
extern const FILEINDEXACCESS stCoreFileIndexAccess;

#endif /* TABLE_FILEINDEX_H_ */
